import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/stock_out_order_goods_detail_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class StockOutOrderGoodsDetailEntity{

  late String goodsBarCode;
  late String batchNo;
  late String locationId;
  late String locationName;
  late double usableCount;
  late double usableWeight;
  late double? stockOutCount;
  late double? mainWeight;
  late double? subWeight;
  late double? stockOutWeight;

  StockOutOrderGoodsDetailEntity();

  factory StockOutOrderGoodsDetailEntity.fromJson(Map<String, dynamic> json) => $StockOutOrderGoodsDetailEntityFromJson(json);

  Map<String, dynamic> toJson() => $StockOutOrderGoodsDetailEntityToJson(this);

  @override
  String toString() => json.encode(this);

}
